<div id="shop-cart">
	<div>
		<a class="shop-big-link" href="#" onclick="clearCart('{$env.url}')">{$Language->get("clear_cart")}</a>
		<h2>{$Language->get("ordered_items")}</h2>
	</div>
	
	{if $ShopCart->getCartItems() != false}
	
	{foreach from=$ShopCart->getCartItems() item=CartItem}
	{assign var="shop_item_object" value=$CartItem.item}
	{assign var="shop_item_quantity" value=$CartItem.quantity}
	
	<div class="shop-cart" id="shop-cart-item-{$shop_item_object->getID()}">
	
	<div id="shop-cart-name">
		<p class="shop-free"><strong>{$shop_item_object->getName()}</strong> ({$shop_item_object->getCode()})
	</div>
	<div class="shop-cart-image">
		<img src="{$shop_item_object->getImage()}" width="100" />
	</div>
	<div class="shop-cart-price">
		<table cellpadding="0" cellspacing="0">
		{if $shop_item_object->getDiscount() == 0}
				<tr><td>{$Language->get("price")}: </td><td>{$shop_item_object->getRawPrice()}&euro;</td></tr>
			{else}	
				<tr><td>{$Language->get("price")}: </td><td><strike>{$shop_item_object->getRawPrice()}&euro;</strike></td></tr>
				<tr><td class="layer-light">{$Language->get("discount")}: </td><td class="layer-light">{$shop_item_object->getDiscount()}%</td></tr>
				<tr><td><strong>{$Language->get("your_price")}: </strong></td><td><strong>{$shop_item_object->getDiscountPrice()}&euro;</strong></td></tr>
			{/if}
		</table>
	</div>
	<div class="shop-cart-details">
		<p class="shop-free"><strong>{$Language->get("quantity")}</strong></p>
		<p class="shop-free"><input type="text" id="quantity_{$shop_item_object->getID()}" value="{$shop_item_quantity}" /></p>
		<p class="shop-free"><input type="button" onclick="shopChangeItemQuantity('{$env.url}', {$shop_item_object->getID()})" value="{$Language->get('change_quantity')}" /></p>
	</div>
	<div class="shop-cart-details shop-no-right-margin">
		<p class="shop-free"><strong>{$Language->get("total_amount")}</strong></p>
		<p class="shop-free shop-bigger-font"><span id="shop-item-total-{$shop_item_object->getID()}">{math equation="q * p" q=$shop_item_quantity p=$shop_item_object->getDiscountPrice()}</span>&euro;</p>
		<a class="shop-small-link" href="#" onclick="removeCartItem('{$env.url}',{$shop_item_object->getID()})">{$Language->get("remove_item")}</a>
	</div>
	
	</div>
	
	{/foreach}
	
	<div id="shop-cart-total-amount">
		<p class="shop-free shop-bigger-font"><strong>{$Language->get("total_amount")}: <span id="shop-cart-total">{$ShopCart->getTotalAmount()}</span>&euro;</strong></p>
		<p class="shop-free shop-bigger-font"><a class="shop-big-link" href="{$env.url}{$RedirectName|default:'shop'}/cashier/">{$Language->get("to_cashier")}</a></p>
	</div>
	
	{else}
	
	{$Language->get("cart_empty")}
	
	{/if}
</div>